﻿@{
    ViewBag.Title = "牛人信息增加";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>牛人信息增加</h2>
        <ol class="breadcrumb">
            <li>
                <a href="/Admin/Home/Index">后台管理</a>
            </li>
            <li>
                <a href="/Admin/NewRen/Index">牛人管理</a>
            </li>
            <li>
                <a href="#">牛人信息增加</a>
            </li>
        </ol>
    </div>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>牛人信息增加 <small><a href="/Admin/NewRen/Index">牛人管理</a></small></h5>
                </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        @using (Html.BeginForm("Add", "NewRen", FormMethod.Post, new { id = "frmAddNewRen", @class = "form-horizontal" , enctype = "multipart/form-data" }))
                        {
                            @Html.AntiForgeryToken()
                            <div class="form-group">
                                <label class="col-sm-2 control-label">用户名</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" placeholder="用户名" name="UserName">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">真实姓名</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" placeholder="真实姓名" name="RealName">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">电话</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" placeholder="电话" name="Phone">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">工作</label>
                                <div class="col-sm-10">
                                    <select class="form-control w-3" name="Job">
                                        <option value="">选择工作</option>
                                        @foreach (var item in ViewBag.Jobs)
                                        {
                                            <option value="@item.JobName">@item.JobName</option>
                                        }
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">描述</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" placeholder="描述" name="Description">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">城市</label>
                                <div class="col-sm-10">
                                    <select class="form-control w-2" name="City">
                                        <option value="">选择城市</option>
                                        @foreach (var item in ViewBag.Cities)
                                        {
                                            <option value="@item.CityName">@item.CityName</option>
                                        }
                                    </select>

                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">地址</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" placeholder="地址" name="Address">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">性别</label>
                                <div class="col-sm-10">
                                    <select name="SexAsInt" class="form-control w-2">
                                        <option value="0">女</option>
                                        <option value="1">男</option>
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">图像</label>
                                <div class="col-sm-10">
                                    <select class="form-control w-3" name="spicture" id="slpicture" style="float:left;">
                                        <option value="">选择图像</option>
                                        @foreach (var item in ViewBag.Pictures)
                                        {
                                            <option value="@item.Path">@item.Title</option>
                                        }
                                    </select>
                                    <img src="" id="picture" alt="" style="display:none;width:60px;height:60px;float:left;margin-left:30px;" />
                                    <div class="clear"></div>
                                    <input type="file" name="file" class="form-control w-3" style="margin-top:80px;" />
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                    <button class="btn btn-white" type="reset">重置</button>
                                </div>
                                <span class="help-block m-b-none">@Html.ValidationSummary(true)</span>
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
